Skip to content

Fix the input function for receiving '0'#6

Merged
lucarosenberg merged 2 commits intomainfrom
input-zero
Apr 27, 2026
Merged

Fix the input function for receiving '0'#6
lucarosenberg merged 2 commits intomainfrom
input-zero

Conversation

@NeilFraser
Copy link
Copy Markdown
Owner

The zero key returns code 16, not 0. Add a special case to change 16 to 0. A side effect of this observation is that the DSKY can't return a 0, so using -1 as a flag isn't needed, we can just use 0.

The zero key returns code 16, not 0.  Add a special case to change 16 to 0.
A side effect of this observation is that the DSKY can't return a 0, so using -1 as a flag isn't needed, we can just use 0.
Copy link
Copy Markdown
Collaborator

@lucarosenberg lucarosenberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@lucarosenberg lucarosenberg merged commit 87dddfa into main Apr 27, 2026
@NeilFraser NeilFraser deleted the input-zero branch April 27, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants